package com.fishery.client;

import com.fishery.entity.Result;
import com.fishery.handler.ProcessingServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 加工厂模块的远程调用服务
 *
 * @author Ghost
 * @since 2021-1-30
 */
@FeignClient(value = "fishery-processing-service", fallback = ProcessingServiceFallback.class)
public interface ProcessingClient {

	@GetMapping("/processingFactory/factory/factoryMessageOfBase/{id}")
	public Result searchFactoryMessageOfBase(@PathVariable(name = "id") String baseId);

}
